using System;
using UnityEngine;

[Serializable]
public class exp : MonoBehaviour
{
	public int exp;

	public string prefix;

	public exp()
	{
		prefix = "Wins: ";
	}

	public void getexp()
	{
		exp = PlayerPrefs.GetInt("Exp");
		GetComponent<GUIText>().text = prefix + exp;
	}

	public void Main()
	{
		InvokeRepeating("getexp", 0.5f, 1.5f);
	}
}
